package cn.tedu.csmall.passport.mapper;

import cn.tedu.csmall.passport.pojo.entity.Admin;
import cn.tedu.csmall.passport.pojo.entity.AdminRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

@Repository
@Transactional
public interface AdminRoleMapper extends BaseMapper<AdminRole> {

    // 批量插入
    // 参数列表的选择方式：List<AdminRole>  AdminRole[]  AdminRole...
    int insertBatch(AdminRole[] adminRoleList);

    // 根据管理员ID删除
    int deleteByAdminId(Long adminId);

    //

}
